# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=powersploit
pkgver=591.d943001
pkgrel=1
groups=('blackarch' 'blackarch-exploitation' 'blackarch-windows')
pkgdesc='A PowerShell Post-Exploitation Framework.'
url='https://github.com/mattifestation/PowerSploit'
arch=('any')
license=('BSD')
makedepends=('git')
source=("$pkgname::git+https://github.com/PowerShellMafia/PowerSploit.git#branch=dev")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -dm 755 "$pkgdir/usr/share/windows/$pkgname"

  cp -a --no-preserve=ownership * "$pkgdir/usr/share/windows/$pkgname"
}

